import { Injectable } from '@angular/core';
import { HttpClientService } from '../../../../services/http-client.service';

@Injectable()
export class ExtractServiceService {

	constructor(
		public httpClient: HttpClientService
	) { }
	// 保存条目
	save(postBody,nFundNo){
		return this.httpClient.post('/pms/v1/item/serItem?nFundNo='+nFundNo, postBody);
	}
	// 查询-单个服务条目条目内容（根据FundNo）
	getSingleInfo(nFundNo){
		return this.httpClient.get('/pms/v1/item/serItem/getSerItem/'+nFundNo);
	}
	// 更新服务类条目基本信息（不需要审核）
	// edit(putBody) {
	// 	return this.httpClient.put('/pms/v1/item/serItemAudit/serItem', putBody);
	// }
	edit(putBody) {
		return this.httpClient.put('/pms/v1/item/serItem/updateSerItem', putBody);
	}
	//获取模板参数接口
	getServiceEntryModel(){
		return this.httpClient.get('/pms/v1/common/templateParam/template?sItemCode=SERVICE_ITEM');
	}
}